/*
 * @Author: wwj 3342930399@qq.com
 * @Date: 2024-03-05 19:13:59
 * @LastEditors: wwj 3342930399@qq.com
 * @LastEditTime: 2024-03-25 23:15:46
 * @FilePath: \vue\src\api\login.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { doPost, doGet } from "./request";
//查询所有学生
export const apiGetStudentList = (data) => doGet("/student/studentList", data);
//班级列表下拉框
export const apiGetClassList = (data) => doGet("/student/classList", data);
//列表下拉框
export const apiGetGradeList = (data) => doGet("/student/gradeList", data);
//新增学生信息
export const apiAddStudent = (data) => doPost("/student/save", data);
//更新学生信息
export const apiUpdateStudent = (data) => doPost("/student/update", data);
//分页查询学生数据
export const apiGetStudentPageList = (data) => doGet("/student/page", data);
//删除学生数据
export const apiDeleteList = (data) => doGet("/student/delete?ids=" + data.ids);

//导出学生表
export const apiExportStudent = (data) => doGet("/student/export", data);
